import Vue from 'vue';
import Router from 'vue-router';
import HelloWorld from '@/components/HelloWorld';
import AppIndex from '@/components/AppIndex';
import Login from '@/components/Login';

Vue.use(Router);

export default new Router({
  routes: [
    // {
    //   path: '/',
    //   name: 'HelloWorld',
    //   component: HelloWorld
    // },
    {
      path: '/',
      name: 'Login',
      component: Login
    },{
      path: '/login',
      name: 'Login',
      component: Login
    },{
      path: '/index',
      name: 'AppIndex',
      component: AppIndex
    }
  ],
  mode: "history"   // mode 设置为history ，去掉地址栏上的 # 号
})
